tests: Build test-lzma with LZMA flags
authorDan Nicholson <nicholson@endlessm.com>
Wed, 26 Aug 2015 16:54:31 +0000 (09:54 -0700)
committerColin Walters <walters@verbum.org>
Wed, 26 Aug 2015 19:20:42 +0000 (15:20 -0400)
test-lzma builds a copy of the compressor and decompressor directly, so
the compiler needs access to the LZMA headers and the linker needs to
link the program with liblzma.

Makefile-tests.am

index 25bc7a091aa43e4302938f4da39a0407f0f876db..df216496a6a9f0f0f2cb812bcc7537b826cc6744 100644 (file)
@@ -174,8 +174,8 @@ tests_test_ot_tool_util_LDADD = $(TESTS_LDADD)
 
 tests_test_lzma_SOURCES = src/libostree/ostree-lzma-common.c src/libostree/ostree-lzma-compressor.c \
        src/libostree/ostree-lzma-decompressor.c tests/test-lzma.c
-tests_test_lzma_CFLAGS = $(TESTS_CFLAGS)
-tests_test_lzma_LDADD = $(TESTS_LDADD)
+tests_test_lzma_CFLAGS = $(TESTS_CFLAGS) $(OT_DEP_LZMA_CFLAGS)
+tests_test_lzma_LDADD = $(TESTS_LDADD) $(OT_DEP_LZMA_LIBS)
 
 tests_test_gpg_verify_result_SOURCES = \
        src/libostree/ostree-gpg-verify-result-private.h \